/*
 * GluedRelativeLocation.java
 *
 * Created on 19 maart 2008, 9:20
 *
 * @author wijnand.schepens@hogent.be
 */

package diagram.locations;

/**
 * relative point that moves its base location along when moved, so as to keep the relative distance fixed
 */
public class RigidRelativeLocation extends RelativeLocation
{
	
	public RigidRelativeLocation(Location base, int relativeX, int relativeY)
	{
		super(base, relativeX, relativeY);
	}
	
	public void setXY(int x, int y)
	{
		this.getBase().setXY(x - this.getRelativeX(), y - this.getRelativeY());
	}
}
